/*
	FileName : JT_C_REC_Ver.h
	Description :
	Created on 2017.11.05 by WFL.

	Revision History:

*/



#ifndef  __JT_C_REC_VER_20171105__
#define  __JT_C_REC_VER_20171105__


#include "stdint.h"

//ver
//subVer
//year
//month
//date

///---------------External version info-----------------
//BIOS	: sampling CPU		APP	: sampling CPU
//BIOS	: record CPU		APP	: record CPU
//BIOS	: A_CTRL CPU		APP	: A_CTRL CPU
//BIOS	: A_JM1 CPU			APP	: A_JM1 CPU
//BIOS	: A_JM2 CPU			APP	: A_JM2 CPU
//BIOS	: B_CTRL CPU		APP	: B_CTRL CPU
//BIOS	: B_JM1 CPU			APP	: B_JM1 CPU
//BIOS	: B_JM2 CPU			APP	: B_JM2 CPU
//BIOS	: LJB CPU			APP	: LJB CPU
///---------------Internal version info------------------
//BIOS	: sampling CPU		APP	: sampling CPU
//BIOS	: record CPU		APP	: record CPU		USB : record CPU
//BIOS	: A_CTRL CPU		APP	: A_CTRL CPU
//BIOS	: A_JM1 CPU			APP	: A_JM1 CPU
//BIOS	: A_JM2 CPU			APP	: A_JM2 CPU
//BIOS	: B_CTRL CPU		APP	: B_CTRL CPU
//BIOS	: B_JM1 CPU			APP	: B_JM1 CPU
//BIOS	: B_JM2 CPU			APP	: B_JM2 CPU
//BIOS	: LJB CPU			APP	: LJB CPU
//-------------------------------------------------------

#define JTC_VER_MAX_LEN			200

#define JTC_VER_UNIT_LEN		5
#define JTC_VER_UNIT_TOLNUMBER	37
#define JTC_VER_TOTAL_LEN		(JTC_VER_UNIT_LEN * JTC_VER_UNIT_TOLNUMBER)	//185


#define JTC_VER_uartUNIT_LEN	7


#define JTC_VER_UNIT_EXT_SAM_BIOS	0
#define JTC_VER_UNIT_EXT_SAM_APP	1
#define JTC_VER_UNIT_EXT_REC_BIOS	2
#define JTC_VER_UNIT_EXT_REC_APP	3
#define JTC_VER_UNIT_EXT_ACTRL_BIOS	4
#define JTC_VER_UNIT_EXT_ACTRL_APP	5
#define JTC_VER_UNIT_EXT_AJM1_BIOS	6
#define JTC_VER_UNIT_EXT_AJM1_APP	7
#define JTC_VER_UNIT_EXT_AJM2_BIOS	8
#define JTC_VER_UNIT_EXT_AJM2_APP	9
#define JTC_VER_UNIT_EXT_BCTRL_BIOS	10
#define JTC_VER_UNIT_EXT_BCTRL_APP	11
#define JTC_VER_UNIT_EXT_BJM1_BIOS	12
#define JTC_VER_UNIT_EXT_BJM1_APP	13
#define JTC_VER_UNIT_EXT_BJM2_BIOS	14
#define JTC_VER_UNIT_EXT_BJM2_APP	15
#define JTC_VER_UNIT_EXT_LJB_BIOS	16
#define JTC_VER_UNIT_EXT_LJB_APP	17

#define JTC_VER_UNIT_INN_SAM_BIOS	18
#define JTC_VER_UNIT_INN_SAM_APP	19
#define JTC_VER_UNIT_INN_REC_BIOS	20
#define JTC_VER_UNIT_INN_REC_APP	21
#define JTC_VER_UNIT_INN_REC_USB	22
#define JTC_VER_UNIT_INN_ACTRL_BIOS	23
#define JTC_VER_UNIT_INN_ACTRL_APP	24
#define JTC_VER_UNIT_INN_AJM1_BIOS	25
#define JTC_VER_UNIT_INN_AJM1_APP	26
#define JTC_VER_UNIT_INN_AJM2_BIOS	27
#define JTC_VER_UNIT_INN_AJM2_APP	28
#define JTC_VER_UNIT_INN_BCTRL_BIOS	29
#define JTC_VER_UNIT_INN_BCTRL_APP	30
#define JTC_VER_UNIT_INN_BJM1_BIOS	31
#define JTC_VER_UNIT_INN_BJM1_APP	32
#define JTC_VER_UNIT_INN_BJM2_BIOS	33
#define JTC_VER_UNIT_INN_BJM2_APP	34
#define JTC_VER_UNIT_INN_LJB_BIOS	35
#define JTC_VER_UNIT_INN_LJB_APP	36


extern uint8_t JTC_ver[JTC_VER_MAX_LEN];

//----------------------------------------------------------------------------
void JTC_REC_VER_getUnit(uint8_t *readBuf, uint8_t *verBuf, uint8_t unit);
void JTC_REC_VER_setUnit(uint8_t *writeBuf, uint8_t *verBuf, uint8_t unit);
void JTC_REC_VER_getWhole(uint8_t *readBuf, uint8_t *verBuf);
void JTC_REC_VER_setWhole(uint8_t *writeBuf, uint8_t *verBuf);
//----------------------------------------------------------------------------
void JTC_REC_VER_setByUart(uint8_t *uartVerDataAddr, uint8_t *verBuf);
//----------------------------------------------------------------------------
void JTC_REC_VER_init(uint8_t *j_Ver);


#endif




///EOF


